Skip to content

Reuse file section marker validation#136

Merged
codeforester merged 1 commit into
mainfrom
refactor/134-20260707-file-marker-validation
Jul 8, 2026
Merged

Reuse file section marker validation#136
codeforester merged 1 commit into
mainfrom
refactor/134-20260707-file-marker-validation

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • replace duplicated inline marker validation in update_file_section
  • reuse __file_section_marker_counts__ so asymmetry and ordering checks stay centralized
  • preserve update_file_section's public status contract by remapping helper validation failures to 1

Fixes #134.

Validation

  • bats lib/bash/file/tests/lib_file.bats
  • ./tests/validate.sh
  • git diff --check

@codeforester codeforester merged commit 11de80a into main Jul 8, 2026
2 checks passed
@codeforester codeforester deleted the refactor/134-20260707-file-marker-validation branch July 8, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor: update_file_section duplicates marker validation already extracted into __file_section_marker_counts__

1 participant